# -*- coding: utf-8 -*-
# @Time : 2022/4/9 19:43
# @Author : Liuqing
# @File : 01_检查重复元素.py
# @Software : PyCharm


def all_unique(lst):
    return len(lst) == len(set(lst))


if __name__ == '__main__':
    lst_x = [1, 1, 2, 2, 3, 2, 3, 4, 5, 6]
    lst_y = [1, 2, 3, 4, 5]
    print(all_unique(lst_x))
    print(all_unique(lst_y))
